package com.platform.server.common;

public class Constant {
	
	//public static final String SERVER_NAME="120.77.52.85";
	public static final String SERVER_NAME="39.108.190.197";
	//当scale>=1,缩略图height=comBase,width按原图宽高比例;若scale<1,缩略图width=comBase,height按原图宽高比例
	  public final static double IMAGECOMPRESS_SCALE=1d;
	
	  public final static int IMAGECOMPRESS_WIDTH=400;  //图片压缩宽度
	  public final static int IMAGECOMPRESS_HEIGHT=400;  //图片压缩长度
	  public final static int IMAGECOMPRESS_COMBASE= 139; //图片压缩基比

	  public final static String IMAGECOMPRESS_SMALLICON="x2";
		// --正确返回码
		public static final int RET_OK = 1;
		// 初始化错误值
		public final static int SYSTEM_ERROR = -200;
		
		public final static int DATA_ERROR=-201;
		
		// 结果code
		public static final String RESULT_CODE_KEY = "resultCode";
		// 获得结果值
		public final static String RESULT_INFO = "resultInfo";
		
		public static final String PROJECT_CONFIG_NAME="appServer";

		//0学生,1家长,2老师
		public static final String IDENTIFY_NUM_STUDENT="0";
		public static final String IDENTIFY_NUM_PARENT="1";
		public static final String IDENTIFY_NUM_TEACHER="2";

		//消息读取状态 0未读,1已读,2接收,3拒绝
		public static final String MESSAGEDETAIL_ACK_STATE_NO="0";
		public static final String MESSAGEDETAIL_ACK_STATE_READ="1";
		public static final String MESSAGEDETAIL_ACK_STATE_AGREE="2";
		public static final String MESSAGEDETAIL_ACK_STATE_REFUSE="3";

		//消息类型,1坐姿错误
		public static final int MESSAGEDETAIL_MTYPE_SITERROR=1;


		public static final String SSOPROPERTIES_ACCESS_TOKEN="access-token";

		public static final int EXPIRETIME=86400;

		//钱币转为现金的比率
		public static final int CURRENCY_CONVERSION_RATIO = 10;

		public static final String TOKENUSER_NAME="username";
		public static final String TOKEN_NIDENTIFYNUM="identifyNum";
		public static final String TOKEN_NOTECASE_ID = "weNotecase";

		//提现状态,1审核中,2审核失败,审核成功,4提现成功
		public static final int WITHDRAWCASH_STATE_SHENHE=1;
		public static final int WITHDRAWCASH_STATE_SHFAIL=2;
		public static final int WITHDRAWCASH_STATE_SHSUCESS=3;
		public static final int WITHDRAWCASH_STATE_SUCESS=4;

		//钱币明细状态1收入,0支出
		public static final String COINDETAIL_STATE_ICOME="1";
		public static final String COINDETAIL_STATE_PAY="0";

		//钱币明细状态,1提现
		public static final int COINSDETAIL_TYPE_TX=1;

		//删除
		public static final String IS_DELETED_DELETED="1";
		//正常状态
		public static final String IS_DELETED_COMMON="0";

		//消息确认状态.0未读,1已读,2接收,3拒绝,
		public static final String MESSAGEDETAILS_ACKSTATUS_NO="0";
		public static final String MESSAGEDETAILS_ACKSTATUS_READER="1";
		public static final String MESSAGEDETAILS_ACKSTATUS_RECIEVER="2";
		public static final String MESSAGEDETAILS_ACKSTATUS_REFUSE="3";

		//消息类型1,提现申请
		public static final int MESSAGEDETAILS_TYPE_CASH_REGISTER=1;

		//消息提现图片
		public static final String MESSAGEDETAILS_CASH_REGISTER_LOGO="http://120.24.36.55:8080/resource/front/images/avatar/avatar.png";

		////,1待支付，2支付失败,3支付成功,4申请退款中，5退款完成
		public static final String PAY_ORDER_STATE_NOPAY = "1";
		public static final String PAY_ORDER_STATE_SUCEESS= "3";

		//支付类型1微信,2支付宝
		public static final String PAY_ORDER_PAYTYPE_WX="1";
		public static final String PAY_ORDER_PAYTYPE_ZFB="2";

		//播放状态0未播，1正在播 2以播完
		public static final String PLAY_TYPE_OFF ="0";
		public static final String PLAY_TYPE_ON ="1";
		public static final String PLAY_TYPE_END = "2";

		//老师认证状态,0未认证,1认证中,2失败,3成功
		public static final String TEACHER_CERTIFICATION_STATE_NO="0";
		public static final String TEACHER_CERTIFICATION_STATE_ING="1";

		public static final String SMS_APP_SCRETE ="7RPhY6iSTbKQP71GuxrXhIzOG9ALiu";
		public static final String SMS_APP_KEY = "LTAI8drK0HbhH5kf";

		public static final String  USER_REGISTER_TEMPLATE= "SMS_67225807";
		public static final String  USER_UPDPASS_TEMPLATE= "SMS_67225805";
		public static final String  USER_IDENTIFY_TEMPLATE= "SMS_67225811";

		public static final String MESSAGE_TEMPLATE_URL_TEST="https://gw.api.tbsandbox.com/router/rest";
		public static final String MESSAGE_TEMPLATE_URL_RUNNING="https://eco.taobao.com/router/rest";
		public static final String MESSAGE_TEMPLATE_SIGN_NAME="广州贝远";

		public static  final  String INCOME = "1";

		public static  final  String EXPEND = "2";

}
